<?php


class Registry extends Component implements IRegistry
{
    private $_adapter = null;
    private $_namespaces = array();
    private $_requestedNamespaces = array();
    
    public function __construct()
    {
        $this->_adapter = new ZendRegistryAdapter();
    }
    
    public function __set($key, $value)
    {
        $this->_adapter->$key = $value;
    }
    
    public function __get($key)
    {
        return $this->_adapter->$key;
    }
    
    public function __isset($key)
    {
        return isset($this->_adapter->$key);
    }
    
    public function set($key, $value)
    {
        $this->_adapter->set($key, $value);
    }
    
    public function get($key)
    {
        return $this->_adapter->get($key);
    }
    
    public function toArray()
    {
        return $this->_adapter->toArray();
    }
    
    public function reload()
    {
        $this->_adapter->reload();
    }
    
    public function isRegistered($key)
    {
        return $this->_adapter->isRegistered($key);
    }
}
?>